<template>
  <div class="mytools">
      <!-- 卡片 -->
      <el-card>
          <div class="content">
              <!-- 左侧 -->
              <div class="left">
              <div class="left-box" v-if="showleft">
                  <i class="el-icon-info"></i>
                  <slot name="left">
                      <span>本月：社保在缴 公积金在缴 增员 减员 入职 离职</span>
                  </slot>
              </div>
              </div>
              <!--右侧 -->
              <div class="right">
                  <slot name="right">
                      <el-button size="mini" type="primary">历史归档</el-button>
                      <el-button size="mini" type="primary">导出</el-button>
                  </slot>
              </div>
          </div>
      </el-card>
  </div>
</template>

<script>
export default {
    name:'mytools',
    props:['showleft']
}
</script>

<style lang="scss" scoped>
.mytools {
  .content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .left {
      .left-box {
        background-color: #e6f7ff;
        border: 1px solid #c8ebff;
        font-size: 12px;
        padding: 6px;
        i {
          color: #409eff;
          margin-right: 6px;
        }
      }
    }
  }
}
</style>